class CreateDeliveries < ActiveRecord::Migration
  def change
    create_table :deliveries do |t|
      t.belongs_to :promotion_mail, index: true
      t.belongs_to :admin, index: true
      t.belongs_to :domain, index: true
      t.timestamp :started_at
      t.timestamp :completed_at
      t.string :status

      t.timestamps
    end
  end
end
